#include <iostream>

class Person1 {
public:
    int age;
    int *height;
    static int staticA;

public:
    static void func() {
        staticA = 123;
        std::cout << "static func 调用" << std::endl;
    }
};

int Person1::staticA = 123;

int main() {

    Person1 p{};
    p.func(); // 通过实例访问的静态成员

    Person1::func();

    return 0;
}

